package cn.smbms.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.smbms.pojo.User;

public interface UserService {
	public User login(String userCode,String password);
	
	List<User> findList(String name, Integer roleId,Integer pageNo,Integer pageSize);
	
	public int count(String userName,Integer userRole);
	
	/**
	 * ��ѯ��ϸ��Ϣ
	 */
	public User findListUser(Integer id);
	
	/**
	 * �����û�
	 */
	public int addUser(User user);
	
	/**
	 * �޸��û�
	 */
	public int prinById(User user);
	
	/**
	 * ɾ���û�
	 */
	public boolean deleteUser(int uid);
	
	/**
	 * ��ѯUserCode
	 */
	public Boolean userCodeExit(String userCode);
	
	/**
	 * 修改密码
	 */
	public int updatePwd(String newpassword,Integer id);


}
